#include "stdafx.h"
#include "DataTableFieldCollection.h"
#include "DataTableField.h"
using namespace Dimine::Core;

//std::list<CFieldStru*>* dmDataTableFieldCollectionCS::GetFieldStru(CDataTable* table)
//{
//	int fieldCount=table->Get_Field_Count();
//	std::list<CFieldStru*>* fields=new std::list<CFieldStru*>(fieldCount);
//	for(int i=0;i<fieldCount;++i)
//	{
//		CFieldStru* field=NULL;
//		field=table->GetFieldStru(i);
//		fields->push_back(field);
//	}
//	return NULL;
//}
//bool dmDataTableFieldCollectionCS::Add(dmDataTableFieldCS^ field,int index)
//{
//	VALIDATE_NATIVE
//	CFieldStru* f=field->Native;
//	return m_native->Add_Field(f->GetFieldName(),f->GetFieldType(),index)!=0;
//}
//bool dmDataTableFieldCollectionCS::Delete(int fieldid)
//{
//	VALIDATE_NATIVE
//	return m_native->Del_Field(fieldid);
//}
//bool dmDataTableFieldCollectionCS::ModifyFieldName(int iField,STRINGCS newName)
//{
//	VALIDATE_NATIVE
//	String2Char(newName)
//	return m_native->ModifyFldName(iField,fn);
//}
//bool dmDataTableFieldCollectionCS::ModifyFieldType(int iField,dmTABLE_FIELD_TYPE_CS type)
//{
//	VALIDATE_NATIVE
//	return m_native->ModifyFldType(iField,(DM::TABLE_FIELD_TYPE)type);
//}
//dmDataTableFieldCollectionCS::dmDataTableFieldCollectionCS(CDataTable* table)
//{
//	m_native=table;
//}
